package com.vj.dao.impl;

import com.vj.dao.BookDao;

public class BookDaoImpl implements BookDao {
    private int connNum;
    private String dbName;

//    public BookDaoImpl(String dbName) {
//        this.dbName = dbName;
//        System.out.println("book dao construct running");
//
//    }

    public void save() {
        System.out.println("dao book save");
        System.out.println("dao book connNum:" + connNum);
        System.out.println("dao book dbName:" + dbName);
    }

    public void init() {
        System.out.println("book dao初始化");
    }

    public void destory() {
        System.out.println("book dao销毁");
    }

    public void setConnNum(int connNum) {
        this.connNum = connNum;
    }

//    public void setDbName(String dbName) {
//        this.dbName = dbName;
//    }
}
